package com.lepinwenhua.roomdemo;

import android.app.Application;

/**
 * @author: 魏从响
 * @date: 2025/10/27
 * {@code @class:} MyApplication
 */
public class MyApplication extends Application {

    private static AppDatabase database;

    @Override
    public void onCreate() {
        super.onCreate();
        database = AppDatabase.getInstance(this);
    }

    public static AppDatabase getDatabase() {
        return database;
    }
}

